package com.adinnet.api.dict.mapper;

import com.adinnet.api.dict.model.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 字典 Mapper 接口
 * </p>
 *
 * @author sunjianbo
 * @since 2019-11-05
 */
public interface DictMapper extends BaseMapper<Dict> {

    String getDictNamesByIds(String ids);

    String getDictNameByCode(String code);

    Integer updateDictNameById(@Param("dictName") String dictName, @Param("id")Integer id);

    Integer updateDictNameByDictCode(@Param("dictName")String dictName,@Param("dictCode")String dictCode);

}
